package cn.gailvlun.gll.presentation.chat.vm

import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.ViewModelProvider


class RoomDetailViewModelFactory: ViewModelProvider.NewInstanceFactory {
    private val roomId: Int

    constructor(roomId: Int) : super() {
        this.roomId = roomId
    }

    override fun <T : ViewModel?> create(modelClass: Class<T>): T {
        return RoomDetailViewModel(roomId) as T
    }
}